//链接数据库

const mongoose = require("mongoose");
const db = mongoose.createConnection('mongodb://localhost/test', { useNewUrlParser: true });

module.exports = db;